package com.share.dao.oa.org.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Component;

import com.share.bean.oa.org.EmpCard;
import com.share.commons.base.dao.BaseDaoSupport;
import com.share.dao.oa.org.EmpCardDao;

@Component
public class EmpCardDaoImpl extends BaseDaoSupport<EmpCard> implements EmpCardDao{

	@Override
	public Serializable saveEmpCardDao(EmpCard ec) throws RuntimeException {
		return this.saveObjectRet(ec) ;
	}

	@Override
	public EmpCard loadEmpCardDao(String hql, String whereHQL,
			List<Object> param) throws RuntimeException {
		return this.findSingleEntity(hql, whereHQL, param) ;
	}

	@Override
	public void updateEmpCardDao(EmpCard ec) throws RuntimeException {
		this.updateObject(ec) ;
	}

}
